const puppeteer = require('puppeteer')
async function jd() {
  const browser = await puppeteer.launch({ headless: false })
  const page = await browser.newPage()
  await page.goto('https://www.jd.com')
  const input = await page.$("#key")
 await  input.type("手机")
await page.keyboard.press("Enter")
}
jd()